﻿using System.Diagnostics;

namespace ConsoleApp1
{
    internal class TestScopedServiceImpl : TestServiceI, IDisposable
    {
        public string Name { get; set; } = string.Empty;

        public void Dispose()
        {
            Console.WriteLine($"{this.GetType().Name} Dispose..");
        }

        public void SayHi()
        {
            Debug.WriteLine($"Hi, {Name}");
            Console.WriteLine($"Hi, {Name}");
        }
    }
}